package com.movitech.mobile.cz.base.modules.activiti.dao;

import com.movitech.mobile.cz.base.modules.activiti.entity.AProcessConfig;
import com.movitech.mobile.cz.base.modules.activiti.entity.AProcessConfigExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface AProcessConfigMapper {
    int countByExample(AProcessConfigExample example);

    int deleteByExample(AProcessConfigExample example);

    int deleteByPrimaryKey(String id);

    int insert(AProcessConfig record);

    int insertSelective(AProcessConfig record);

    List<AProcessConfig> selectByExampleWithRowbounds(AProcessConfigExample example, RowBounds rowBounds);

    List<AProcessConfig> selectByExample(AProcessConfigExample example);

    AProcessConfig selectByPrimaryKey(String id);

    AProcessConfig selectByProcessTypeAndDelopTime(Integer type);

    int updateByExampleSelective(@Param("record") AProcessConfig record, @Param("example") AProcessConfigExample example);

    int updateByExample(@Param("record") AProcessConfig record, @Param("example") AProcessConfigExample example);

    int updateByPrimaryKeySelective(AProcessConfig record);

    int updateByPrimaryKey(AProcessConfig record);
}